package com.xms.sdk.service;

import com.xms.core.exception.XmsException;
import com.xms.security.entity.PrincipalObjectAccess;

import java.util.List;
import java.util.UUID;

/**
 * <p>
 * IDataSharer
 * </p>
 *
 * @author migo
 * @since 2021/9/29
 */
public interface IDataSharer {
    boolean share(UUID entityId, UUID recordId, List<PrincipalObjectAccess> principals) throws XmsException;
    boolean share(UUID entityId, UUID recordId, List<PrincipalObjectAccess> principals, boolean ignorePermissions) throws XmsException;
}
